<?php
namespace My\App;

class Foo
{
    public function doSomething()
    {
        $exception = new \Exception();
    }
}

$obj = new Foo();
$obj->doSomething();
